:header
call %working_dir%\header.cmd

REM 7-MakeISO.bat
REM This makes your .iso image.

:WAIK
REM Change DIR to Windows AIK
cd "%waik%\x86"

ECHO Copying %wim_dest%\winpe.wim to %wim_dest%\ISO\sources\boot.wim
copy %wim_dest%\winpe.wim %wim_dest%\ISO\sources\boot.wim /Y

oscdimg -n -b%wim_dest%\etfsboot.com %wim_dest%\ISO %wim_dest%\winpe_%arch-type%.iso


:end
call %working_dir%\end.cmd